package org.poem.service;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * Created by poem on 2017/8/27.
 */
@Service
public class AsyncTaskService {

    @Async
    public void executorAsyncTask(Integer i){
        System.err.println("执行异步任务:"+i);
    }

    public void executorAsyncTaskPlus(Integer i){
        System.err.println("执行异步任务Plus+1:"+ (i+1));
    }
}
